package com.bd.rj.frontstage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bd.rj.common.entity.Experience;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
@Mapper
public interface ExperienceMapper extends BaseMapper<Experience> {


    /**
     *
     * @author WBW
     * 查询企业名称和用户名
     * @return
     */
    @Select("SELECT e.*, p.postname FROM experience e JOIN post p ON e.pid = p.id")
    List<Map<String, Object>> getEnameAndPname();



}
